﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Decorate
{
    

    public abstract class Beverage
    {
        public enum Size { tall, grande, venti };

        protected String description = "Unknown Beverage";
        protected Size size = Size.tall;

        //public String getDescription()
        //{
        //    return description;
        //}

        public abstract String getDescription();

        // 虚函数 由继承的子类实现
        public abstract double cost();

        public abstract Size getSize();

        public void setSize(Size size)
        {
            this.size = size;
        }

        
    }
}
